Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] 카카오 로그인 및 로그아웃 구현 #31

Merged
merged 20 commits into from
Jan 10, 2024

Conversation

hysong4u
Copy link
Member

@hysong4u hysong4u commented Jan 9, 2024

Related Issue 🍫

Summary 🍪

  • 카카오 로그인 API 구현
  • 카카오 로그아웃 API 구현

Before i request PR review 🍰

  • member 엔티티 builder public으로 열어두긴 했는데 추후 확인 예정입니다
  • whitelist에 로그아웃 엔드포인트를 추가하지 않으면 401Unauthorized가 떠서 추가하긴 했는데 추가하는게 맞는걸까요..?

@hysong4u hysong4u added the FEAT 새로운 기능을 추가 label Jan 9, 2024
@hysong4u hysong4u self-assigned this Jan 9, 2024
Copy link
Contributor

@ziiyouth ziiyouth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생했어요!! 로그아웃 할 때는 어차피 토큰을 가지고 있는 상태니까 whiteList에 추가하지 않고 @userid Long userId 를 이용해 받은 memberId 를 가지고 레디스에서 정보 삭제하는 방식으로 가야 할 것 같아요~! 이 부분 수정해보면 조을 거 같습니다 ㅎ,ㅎ

추가로 토큰 재발급은 만료된 엑세스 토큰과 리프레시 토큰을 모두 Request로 받은 뒤에 만료된 엑세스 토큰에서 서비스 자체 UserId를 뽑아서 레디스에 저장된 정보 삭제하면 됩니다 !!

@@ -9,7 +9,7 @@
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@Builder(access = AccessLevel.PRIVATE)
@Builder(access = AccessLevel.PUBLIC) //수정해야함
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아래 빌더 달아줬으니까 여기서는 @AllArgsConstructor랑 빌더랑 둘 다 없애도 될 거 같아용용~!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굿굿 확실히 빼는 게 나을 거 같아요! 멤버 서비스에서는 마이페이지 관련 API업무를 수행하면 좋을 거 같습니다 ㅎㅎ

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이 친구들 있는 폴더가 response가 아니고 reponse로 되어 있는 거 같은데 확인 부탁해용!!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넹넹 확인했습니다!

@ziiyouth ziiyouth merged commit 948c276 into develop Jan 10, 2024
1 check passed
@hysong4u hysong4u deleted the feature/#11-member branch February 5, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FEAT 새로운 기능을 추가
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 카카오 로그인 및 로그아웃 API 구현
2 participants